package edu.uni.dormitory.service;

import edu.uni.dormitory.bean.MaintenanceApply;
import edu.uni.dormitory.bean.MaintenanceEvaluation;
import edu.uni.dormitory.bean.RoomMaintenance;

import java.util.List;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 服务
 */
public interface MaintenanceService{

    MaintenanceApply selectMaintenanceApplyById(Long id);

    MaintenanceApply selectMaintenanceApplyByIdWithSelf(Long id, Long loginId);

    MaintenanceApply selectMaintenanceApplyByIdWithHouseMaster(Long id, Long areaId);


    List<MaintenanceApply> selectMaintenanceApplyPageByArea(Long areaId);

    List<MaintenanceApply> selectMaintenanceApplyPageWithSelf(Long loginId);

    int insertMaintenanceApply(MaintenanceApply maintenanceApply, Long loginId);

    int updateMaintenanceApplyWithHouseMaster(Byte agree, Long areaId, Long loginId, Long id);

    int updateMaintenanceApplyWithInfrastructureSection(RoomMaintenance maintenance, Long loginId, Long id);

    int insertMaintenanceEvaluation(Long id, MaintenanceEvaluation maintenanceEvaluation, Long loginId);

    MaintenanceEvaluation selectEvaluationByApplyId(Long applyId);

    String selectMaintenanceStatusByApplyId(Long applyId);

    List<MaintenanceApply> selectMaintenanceApplyList();
}
